<template>
  <div class="">
    <div class="nav-bar hairline--bottom">
      <div class="van-nav-bar__left">
        <i class="van-icon van-icon-arrow-left van-nav-bar__arrow"></i>
      </div>
      <div class="nav-bar__title ellipsis">{{ title }}</div>
      <div class="nav-bar__right"></div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'NavBar',
  props: {
    title: {
      type: String
    }
  },
  data() {
    return {}
  },
  mounted() {},
  methods: {}
}
</script>

<style>
.nav-bar {
  position: fixed;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 96px;
  line-height: 1.5;
  text-align: center;
  background-color: #fff;
}
.van-nav-bar__title {
  max-width: 60%;
  margin: 0 auto;
  color: #323233;
  font-weight: 500;
  font-size: 0.42667rem;
}
.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
</style>
